<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看印章</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
    <script type="text/javascript" src="../js/commonutil.js"></script>
    <script src="./function.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/jquery.min.js" charset="utf-8"></script>
</head>
<body>
    <div class="layui-container">
        <div class="layui-row" style="padding-top: 20px">
            <div class="layui-col-xs8">
                <div class="look-form-class">
                    <form class="layui-form" id="preViewForm">
                        <div class="layui-form-item">
                            <label class="layui-form-label">印章名称</label>
                            <div class="layui-input-block">
                                <input type="text" id="sealName" name="sealName" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">印模编码</label>
                            <div class="layui-input-block">
                                <input type="text" id="sealCode" name="sealCode" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">印章密码</label>
                            <div class="layui-input-block">
                                <input type="text" id="sealPwd" name="sealPwd" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">印章关键字</label>
                            <div class="layui-input-block">
                                <input type="text" id="keyWords" name="keyWords" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">公章类型</label>
                            <div class="layui-input-block">
                                <input type="text" id="officeSealTypeName" name="officeSealTypeName" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证件类型</label>
                            <div class="layui-input-block">
                                <input type="text" id="identificationTypeName" name="identificationTypeName" lay-verify="title" readonly="readonly" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">证件号码</label>
                            <div class="layui-input-block">
                                <input type="text" name="identificationNo" id="identificationNo" readonly="readonly" lay-verify="title" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">生成时间</label>
                            <div class="layui-input-block">
                                <input type="text" name="createTime" id="createTime" readonly="readonly" lay-verify="title" style="width: 300px" autocomplete="off" placeholder="" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block" style="padding-top:20px;padding-left: 160px">
                                <div class="layui-btn layui-btn-primary" id="closeLookWin">关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="layui-col-xs3">
                <div class="look-image-form-class">
                        <div style="padding-top: 100px;padding-left: 25px">
                            <img src="" id="sealImg" style="width:157px;height:157px">
                        </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    let id = GetUrlParam("id");
    let appId = GetUrlParam("appId");
    let url;
    if (appId == null || appId == undefined || appId == "" || appId == "null"){
        url = serverPre + "/manager/scs/v2/sealInfo/one/"+id;
    }else {
        url = serverPre + "/manager/scs/v2/sealInfo/fdd/one/"+id+"?appId="+appId;
    }
    let result = requestGet(url);
    buildOpenWin(result);

    //取消
    $("#closeLookWin").click(function () {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index);
    });
</script>
</html>
